#include "UtilityButton.h"
#include "UtilityPanel.h"

#include <iostream>
using namespace std;

UtilityButton::UtilityButton(int id, UtilityPanel* panel, String title) : ActionButton(title)
{
	this->id = id;
	this->panel = panel;
}

void UtilityButton::mouseUp(const MouseEvent& e)
{
	state.mouseDown = false;
	panel->buttonClicked(id);
	repaint();
}
